﻿<Window x:Class="SharePointOptimizer.PL.WPF.DatabaseSetup"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="DatabaseSetup" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"       
        xmlns:local="clr-namespace:SharePointOptimizer.PL.WPF" 
        WindowStyle="None" 
		AllowsTransparency="True" 
        Icon="/SharePointOptimizer.PL.WPF;component/Images/SharePointOptimizer_Logo.ico"
		ResizeMode="NoResize"
		MaxHeight="500"
		MaxWidth="482" 
		mc:Ignorable="d" 
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
		Height="350" 
		Width="482">
   
    <Window.Background>
         <ImageBrush ImageSource="Images/watermark.png" Stretch="UniformToFill"  />
    </Window.Background>
    <i:Interaction.Behaviors>
        <local:BorderlessWindowBehavior/>
    </i:Interaction.Behaviors>
   
    <Grid Background="transparent" Width="482" Margin="0,0,0,0">
        <Border BorderBrush="Black" 	
	BorderThickness="1"
    CornerRadius="5"  Margin="0,0,0,0" >
            <Grid x:Name="Grid_progress" Margin="7,5,1.833,-9.5">
                <Viewbox Width="44" Height ="44"
                 HorizontalAlignment="Right" Margin="0,0,42.833,100.5" VerticalAlignment="Bottom" d:LayoutOverrides="Height">
                    <local:progressCircle x:Name="DatabaseSetup_progress" Visibility="Hidden"/>
                </Viewbox>
                <Label Content="" Height="28" HorizontalAlignment="Left" Margin="33,251,0,0" x:Name="lblerror" VerticalAlignment="Top" Width="396.334" BorderBrush="#FFF51010" FontSize="14" Foreground="#FFF20606" />
                <TextBlock Margin="0,0,173.3,0" TextWrapping="Wrap" Height="25.277" 
                           VerticalAlignment="Top"><Run Foreground="#FFFDF7F7" FontWeight="Bold" FontSize="12" Text=""/></TextBlock>
                <Label Content="SQL Server Instance" Height="28" HorizontalAlignment="Left" Margin="22,218,0,0" x:Name="label1" VerticalAlignment="Top" FontWeight="Normal" Foreground="#FFF7F7EF" FontSize="12" />


        <Button 
          
        	Height="28" 
			d:LayoutOverrides="HorizontalAlignment"
        	HorizontalAlignment="Left" 
        	Margin="30,290,0,0" 
        	x:Name="btnDatabaseSubmit" 
        	VerticalAlignment="Top" 
        	Width="28" 
        	Style="{StaticResource GlassButton}"
        	Click="btnDatabaseSubmit_Click"  
        	ToolTip="Submit" >
        	<Image Source="Images/Submit.png" Height="30" Width="27" />
        	</Button>
        <Button                        
            HorizontalAlignment="Left" 
            Margin="400,290,0,0" 
            x:Name="btnClose" 
            VerticalAlignment="Top" 
            Width="28"
            Style="{StaticResource GlassButton}"
            Height="25.277"						
			RenderTransformOrigin="0.432,-0.174"
			Background="#FF7CDDFD"
			ToolTip="Cancel"  Click="btnClose_Click"  d:LayoutOverrides="HorizontalAlignment">
            <Image Source="Images/close.png" Height="16" Width="16"/>
        </Button>

        <TextBlock  TextAlignment="Justify" HorizontalAlignment="Left" 
        	x:Name="txtDatabaseSetup"                    
        	TextWrapping="WrapWithOverflow" 
        	Width="400" 
        	FontWeight="Normal" 
        	Foreground="White" FontSize="12" Margin="28.908,11,0,54.656"  ><Run FontWeight="Bold" Text="Welcome"/><LineBreak/><Run FontWeight="Bold"/><LineBreak/><Run Text="Thank you for using the SharePoint Optimizer! To make your experience as smooth as possible please be aware of the following:"/><LineBreak/><Run Text="- The tool needs to '"/><Run FontWeight="Bold" Text="Run As Administrator"/><Run Text="'."/><LineBreak/><Run Text="- The supported SQL Server versions are: "/><Run FontWeight="Bold" Text="2005, 2008, 2008 R2 + 2012"/><Run Text="."/><LineBreak/><LineBreak/><Run FontWeight="Bold" Text="Please enter a SQL Server Instance:"/><LineBreak/><Run/><LineBreak/><Run Text="The SharePoint Optimizer uses a database to store the collected data. Specify below the SQL Server instance on which this database may be created."/></TextBlock>
        <TextBox 
            HorizontalAlignment="Left" 
            Margin="154.499,0,0,98.656" 
            x:Name="txtBoxInstanceSetup" Width="200"  Height="24" VerticalAlignment="Bottom" />

                
            </Grid>
        </Border>

    </Grid>
</Window>
